import FileUpload from 'e-ui/lib/FileUpload'
import tools from 'utils/tools'
import { Upload } from '@element-ui'

FileUpload.components = {
  ...FileUpload.components,
  Upload
}

FileUpload.props.headers = {
  type: Object,
  default () {
    return tools.getHeaders()
  }
}

export default FileUpload
